package com.dog.basics.bean.dto.admin.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author guoy
 * @since 2020-03-19
 */
@Data

public class SysDeptEditDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "deptId不能为空")
    @ApiModelProperty(value = "部门ID", dataType = "Long", required = true)
    private Long deptId;
    /**
     * 父部门id
     */
    @NotNull(message = "父部门不能为空")
    @Size(max = 20, message = "菜单名称最大长度为20")
    @ApiModelProperty(value = "父部门ID(根目录填写0)", dataType = "Long", required = true)
    private Long pid;

    /**
     * 父级ids
     */
    @NotBlank(message = "父部门不能为空")
    @ApiModelProperty(value = "父级ids(根目录填写0,)", dataType = "String", required = true)
    private String pids;

    /**
     * 简称
     */
    @NotBlank(message = "简称不能为空")
    @Size(max = 20, message = "简称最大长度为20")
    @ApiModelProperty(value = "简称", dataType = "String", required = true)
    private String simpleName;

    /**
     * 全称
     */
    @NotBlank(message = "全称不能为空")
    @Size(max = 20, message = "全称最大长度为20")
    @ApiModelProperty(value = "全称", dataType = "String", required = true)
    private String fullName;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述", dataType = "String", required = true)
    private String description;


    /**
     * 排序
     */

    @ApiModelProperty(value = "排序", dataType = "Integer", required = false)
    private Integer sort;


}
